export type OptionType = {
  text: string;
  value: string;
};

export type QuestionRadioPropsType = {
  title?: string;
  value?: string;
  options?: OptionType[];
  isVertical?: boolean;
  //新增
  disabled?: boolean;
  onChange?: (newProps: QuestionRadioPropsType) => void;
};

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: '单选标题',
  value: '',
  options: [
    { text: '选项1', value: 'item1' },
    { text: '选项2', value: 'item2' },
    { text: '选项3', value: 'item3' },
  ],
  isVertical: false,
};

export type QuestionRadioStatPropsType = {
  stat: Array<{ name: string; count: number }>;
};
